Optimal. Leaf size=52 \[ -\frac {d \left (a+b \log \left (c x^n\right )\right )}{2 x^2}+\frac {e \left (a+b \log \left (c x^n\right )\right )^2}{2 b n}-\frac {b d n}{4 x^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 47, normalized size of antiderivative = 0.90, number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {14, 2334, 2301} \[ -\frac {1}{2} \left (\frac {d}{x^2}-2 e \log (x)\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {b d n}{4 x^2}-\frac {1}{2} b e n \log ^2(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2301
Rule 2334
Rubi steps
\begin {align*} \int \frac {\left (d+e x^2\right ) \left (a+b \log \left (c x^n\right )\right )}{x^3} \, dx &=-\frac {1}{2} \left (\frac {d}{x^2}-2 e \log (x)\right ) \left (a+b \log \left (c x^n\right )\right )-(b n) \int \left (-\frac {d}{2 x^3}+\frac {e \log (x)}{x}\right ) \, dx\\ &=-\frac {b d n}{4 x^2}-\frac {1}{2} \left (\frac {d}{x^2}-2 e \log (x)\right ) \left (a+b \log \left (c x^n\right )\right )-(b e n) \int \frac {\log (x)}{x} \, dx\\ &=-\frac {b d n}{4 x^2}-\frac {1}{2} b e n \log ^2(x)-\frac {1}{2} \left (\frac {d}{x^2}-2 e \log (x)\right ) \left (a+b \log \left (c x^n\right )\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 57, normalized size = 1.10 \[ -\frac {a d}{2 x^2}+a e \log (x)-\frac {b d \log \left (c x^n\right )}{2 x^2}+\frac {b e \log ^2\left (c x^n\right )}{2 n}-\frac {b d n}{4 x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.49, size = 59, normalized size = 1.13 \[ \frac {2 \, b e n x^{2} \log \relax (x)^{2} - b d n - 2 \, b d \log \relax (c) - 2 \, a d + 2 \, {\left (2 \, b e x^{2} \log \relax (c) + 2 \, a e x^{2} - b d n\right )} \log \relax (x)}{4 \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.31, size = 63, normalized size = 1.21 \[ \frac {2 \, b n x^{2} e \log \relax (x)^{2} + 4 \, b x^{2} e \log \relax (c) \log \relax (x) + 4 \, a x^{2} e \log \relax (x) - 2 \, b d n \log \relax (x) - b d n - 2 \, b d \log \relax (c) - 2 \, a d}{4 \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.23, size = 266, normalized size = 5.12 \[ -\frac {\left (-2 e \,x^{2} \ln \relax (x )+d \right ) b \ln \left (x^{n}\right )}{2 x^{2}}-\frac {2 i \pi b e \,x^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right ) \ln \relax (x )-2 i \pi b e \,x^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \ln \relax (x )-2 i \pi b e \,x^{2} \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \ln \relax (x )+2 i \pi b e \,x^{2} \mathrm {csgn}\left (i c \,x^{n}\right )^{3} \ln \relax (x )+2 b e n \,x^{2} \ln \relax (x )^{2}-4 b e \,x^{2} \ln \relax (c ) \ln \relax (x )-4 a e \,x^{2} \ln \relax (x )-i \pi b d \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+i \pi b d \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+i \pi b d \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-i \pi b d \mathrm {csgn}\left (i c \,x^{n}\right )^{3}+b d n +2 b d \ln \relax (c )+2 a d}{4 x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.55, size = 49, normalized size = 0.94 \[ \frac {b e \log \left (c x^{n}\right )^{2}}{2 \, n} + a e \log \relax (x) - \frac {b d n}{4 \, x^{2}} - \frac {b d \log \left (c x^{n}\right )}{2 \, x^{2}} - \frac {a d}{2 \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.40, size = 66, normalized size = 1.27 \[ \ln \relax (x)\,\left (a\,e+\frac {b\,e\,n}{2}\right )-\frac {\frac {a\,d}{2}+\frac {b\,d\,n}{4}}{x^2}-\frac {\ln \left (c\,x^n\right )\,\left (\frac {b\,e\,x^2}{2}+\frac {b\,d}{2}\right )}{x^2}+\frac {b\,e\,{\ln \left (c\,x^n\right )}^2}{2\,n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 4.57, size = 63, normalized size = 1.21 \[ - \frac {a d}{2 x^{2}} + a e \log {\relax (x )} + b d \left (- \frac {n}{4 x^{2}} - \frac {\log {\left (c x^{n} \right )}}{2 x^{2}}\right ) - b e \left (\begin {cases} - \log {\relax (c )} \log {\relax (x )} & \text {for}\: n = 0 \\- \frac {\log {\left (c x^{n} \right )}^{2}}{2 n} & \text {otherwise} \end {cases}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________